package main

import "fmt"

/**
递归函数
*/
func main() {
	tests := Tests(5)
	fmt.Println(tests)
}

var s int = 1

func Tests(a int) int {
	if a == 1 {
		return 1
	}
	s *= a
	Tests(a - 1)
	return s
}
